package com.doudou.oauth.constant;

/**
 * @Author: 傻男人
 * @Date: 2020/5/8 16:10
 * @Version: 1.0
 * @Description:
 */
public interface ExceptionCode {

    //内部错误
    Integer INTERNAL_SERVER_ERROR =  0xFF;
    /**
     * 缺失授权码参数
     */
    public static final Integer PERMANENT_CODE_MISS_CODE = 0x01;

    /**
     * 不支持请求
     */
     Integer method_not_allowed = 0x02;
    //需要scope
     Integer insufficient_scope = 0x03;
    //禁止访问
     Integer access_denied = 0x04;
    //不支持返回类型
     Integer unsupported_response_type = 0x05;
    //不支持的授权类型
     Integer unsupported_grant_type = 0x06;
    //redirect URI不匹配
     Integer redirect_uri_mismatch = 0x07;
    //非法请求方法
     Integer invalid_request = 0x08;
    //非法token
     Integer invalid_token = 0x09;
    //非法scope
     Integer invalid_scope = 0x10;
    //非法授权参数 或者 redirect 不正确或者 (not match)
     Integer invalid_grant = 0x11;
    //应用未授权
     Integer unauthorized_client = 0x12;
    //非法应用
     Integer invalid_client = 0x13;
    //认证信息错误
     Integer unauthorized =  0x14;
    //用户I账户参数缺失
     Integer USER_ACCOUNT_MISS_Integer = 0x15;

    //app code 申请token时，缺少参数
     Integer APP_Integer_MISS_Integer =  0x16;
}
